﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BikeBouncer.Site
{
	public partial class BoxLayout_master : MasterPage
	{
		#region Properties

		public String ErrorTitle
		{
			get
			{
				return LitErrorTitle.Text;
			}
			set
			{
				LitErrorTitle.Text = value;
			}
		}

		public PlaceHolder Errors
		{
			get
			{
				return PlaceErrors;
			}
		}

		#endregion

		#region Main methods

		protected void Page_Load(Object sender, EventArgs e)
		{
			if (Page.IsPostBack)
			{
				PlaceErrors.Controls.Clear();
			}
		}

		protected void Page_PreRender(Object sender, EventArgs e)
		{
			PanError.Visible = Errors.Controls.Count > 0;
		}

		#endregion
	}
}